#ifndef _TIME_H_
#define _TIME_H_

#include "main.h"
#include "driver/timer.h"

#define Timer0_group 	  	TIMER_GROUP_0
#define Timer0_Button 	  	TIMER_0
#define Timer0_BeepLed 	  	TIMER_1

extern uint32_t Tim_Countdown;

//赋初始值
typedef struct{
	uint8_t  expandCnt;	//蜂鸣器拓展运行计数
	uint16_t expWait; 	//蜂鸣器拓展运行等待计数
	uint8_t  runFlag;	//蜂鸣器运行标志位
	uint16_t count;		//蜂鸣器定时器刷新次数
	uint16_t countSave; //蜂鸣器运行次数值存储
}BeepParam_t;			//蜂鸣器参数设置
BeepParam_t BePm;

//赋初始值
typedef struct{
	uint8_t  number;	//LED号
	uint8_t  twinkle; 	//LED闪烁运行标志位
	uint16_t runcount;	//led定时器刷新次数
}LedParam_t;		//LED参数设置
LedParam_t LedPm;

void Time_Init(void);

#endif


